﻿using System.Collections.Generic;
using System.Linq;

namespace ProblemsSet
{
    public class Problem_3: BaseProblem
    {
        public override object GetResult()
        {
            return MathLogic.GetPrimeFactors(600851475143).Keys.Last();
        }

        public override string Problem
        {
            get
            {
                return @"The prime factors of 13195 are 5, 7, 13 and 29.

What is the largest prime factor of the number 600851475143 ?";
            }
        }

        public override bool IsSolved
        {
            get
            {
                return true;
            }
        }

        public override object Answer
        {
            get
            {
                return 6857;
            }
        }
    }
}
